<?php

namespace app\admin\controller\pink;

use app\common\model as M;

/**
 * 拼团配置模块
 */
class PinkConfig extends \app\admin\controller\AuthController
{
	public $model = '\app\common\model\PinkConfig';

    use \traits\ShotcutControllerTrait;

    public function _save ($data)
    {
        if ( !isset($data['id']) || !$data['id'] ) {
            $data['create_time'] = date('Y-m-d H:i:s');
            $data['create_by']   = $this->adminInfo['real_name'];
        }

        $data['update_time'] = date('Y-m-d H:i:s');
        $data['update_by']   = $this->adminInfo['real_name'];

        return $data;
    }
}